//
//  NSURL+Extentsion.m
//  西瓜快播
//
//  Created by 李赛 on 15/8/17.
//  Copyright (c) 2015年 李赛. All rights reserved.
//

#import "NSURL+Extentsion.h"

@implementation NSURL (Extentsion)
+ (instancetype)URLWithStringForBigImage:(NSString *)URLString
{

    if ([URLString hasPrefix:@"http://"]
        )
    {
        return [NSURL URLWithString:URLString];
    }
    else
    {
        return [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",HttpBaseURLString,URLString]];
    }
}
+ (instancetype)URLWithStringForMiddleImage:(NSString *)URLString
{
    if ([URLString hasPrefix:@"http://"]
        )
    {
        return [NSURL URLWithString:URLString];
    }
    else
    {
        return [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",HttpBaseURLString,URLString]];
    }
}
@end
